home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000436_slash_dev_slas…_2000@yahoo.com_Thu Nov 11 09:58:26 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!proxad.net!216.239.36.134.MISMATCH!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
  2. From: "Mark Sapiro" <slash_dev_slash_null_2000@yahoo.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: How to use shell variable in a kermit shell script
  5. Date: 10 Nov 2004 21:03:35 -0800
  6. Organization: http://groups.google.com
  7. Lines: 28
  8. Message-ID: <1100149415.017612.185600@f14g2000cwb.googlegroups.com>
  9. References: <4192a867$0$9345$626a14ce@news.free.fr>
  10. NNTP-Posting-Host: 209.182.169.133
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="iso-8859-1"
  13. X-Trace: posting.google.com 1100149418 13859 127.0.0.1 (11 Nov 2004 05:03:38 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: Thu, 11 Nov 2004 05:03:38 +0000 (UTC)
  16. User-Agent: G2/0.2
  17. Complaints-To: groups-abuse@google.com
  18. Injection-Info: f14g2000cwb.googlegroups.com; posting-host=209.182.169.133;
  19.    posting-account=iQNWIg0AAAAD2fStXNC9nwGlPdSqjWrI
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15220
  21.  
  22. Frederic wrote:
  23. > Hi,
  24. >
  25. > In a kermit shell script doing FTP transfert, between 1 master server
  26. to
  27. > many slave, I need to use values stored in shell environment
  28. variable. How
  29. > can I do this?
  30. > Best regards,
  31.  
  32. Do you mean a Kermit script? If so, in MS-Kermit, C-Kermit and
  33. Kermit-95, the environment is accessible via \$(environment_variable).
  34.  
  35. For example:
  36.  
  37. [C:\Program Files\Kermit 95 2.1\] K-95> echo \$(temp)
  38. C:\DOCUME~1\Owner\LOCALS~1\Temp
  39. [C:\Program Files\Kermit 95 2.1\] K-95> echo \$(path)
  40. C:\Tcl\bin;F:\CVS\ssh\ssh;c:\program files\kermit 95
  41. 2.1;c:\gnuwin32\bin;f:\bin;f:\m51;f:\m51\bin;f:\c51;f:\c51\bin;f:AST_C\progra~1\basic;C:\WINDOWS\system32;C:\WINDOWS;c:\gs\gs8.14\bin;c:\gs\gs8.14\lib;C:\Program
  42. Files\Python;C:\WINDOWS\System32\Wbem;C:\Program files\PC-Doctor for
  43. Windows XP\WINDSAPI
  44. [C:\Program Files\Kermit 95 2.1\] K-95>
  45.  
  46. --
  47. Mark Sapiro msapiro at value net      The highway is for gamblers,
  48. San Francisco Bay Area, California    better use your sense - B. Dylan
  49.